<?php
if(!check_manager_login()) exit('无权查看，请登录!');
require_once(MODEL_PATH.DS.'News.php');
$News = new News();

$news_id = isset($_GET['news_id'])?(int)$_GET['news_id']:'';
if($news_id){
	$result = $News->delNewsById($news_id);
	if($result){
		redirect('index.php?mod=news&act=list','删除新闻成功!');
	}
}else{
	redirect('index.php?mod=news&act=list','请选择新闻!');
}
?>